<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>IRENK</title>
<script language="javascript">

	function validar(){
		var f=document.getElementById('logOn');
		if(f.user.value=="" || f.pwd.value==""){
			alert("Debes ingresar un usuario y contraseña primero");
			if(f.user.value=="") f.user.focus();
			else f.pwd.focus();
		}else
			f.submit();
		
	}
	
	function recupera(){
		var user=document.getElementById('user').value;
		if(user==""){
			alert("Ingresa primero el usuario");
		}else{
			parent.location.replace("appIrenk/recPass.php?u="+user);
		}
	}

	
</script>
</head>

<body><div style="padding:30px;"></div>
<table style="background:url(images/indexBack.jpg); background-repeat:repeat-x;" height="400" width="100%" align="center" border="0" cellpadding="0" cellspacing="0">
	<tr>
    	<td colspan="2" height="350">
			<table align="center" border="0" cellpadding="0" cellspacing="0">
            	<tr>
                	<td style="background:url(images/upperLeftCorner.jpg); background-repeat:no-repeat;" width="35" heigh="46">&nbsp;
                    
                    </td>
                    <td style="background:url(images/upperSide.jpg); background-repeat:repeat-x;" height="46">&nbsp;
                    
                    </td>
                    <td style="background:url(images/upperRightCorner.jpg); background-repeat:no-repeat;" width="35" height="46">&nbsp;
                    
                    </td>
                </tr>
                <tr >
                	<td style="background:url(images/LeftSide.jpg); background-repeat:repeat-y;" width="35">&nbsp;</td>
                    <td style="background:url(images/background.jpg);">
                    <table border="0" cellpadding="1" cellspacing="1">
                    <form method="post" action="Security/validateUser.php" id="logOn">
                    	<tr><th colspan="2" style="color:#FFFFFF;" align="center">Acceso Sistema IRENK</th>
                    	<tr><th style="color:#FFFFFF;" align="right">Usuario:&nbsp;</th>
                        	<td align="left"><input type="text" name="user" id="user" /></td>
                        </tr>
                        <tr><th style="color:#FFFFFF;" align="right">Contrase&ntilde;a:&nbsp;</th>
                        	<td><input type="password" name="pwd" id="pwd" /></td>
                        </tr>
                        <tr><td colspan="2" align="center">
                        	<input type="submit" value="Accesar" onclick="validar();"  /><input type="reset" value="Limpiar" />
                        </td></tr>
                        <tr><td colspan="2">
                        	<br /><input type="button"  style="background:none; color:#FFFFFF; border:none;" value="                    	Olvidaste tu contrase&ntilde;a?" onclick="recupera();" /></a>
                        </td></tr>
                    </div></form>
                    </table>
                    </td>
                    <td style="background:url(images/rightSide.jpg); background-repeat:repeat-y;" width"35">&nbsp;
                    </td>
                </tr>
                <tr>
                	<td style="background:url(images/bottomLeftCorner.jpg); background-repeat:no-repeat;" width="35" height="46">&nbsp;
                    
                    </td>
                    <td style="background:url(images/bottomSide.jpg); background-repeat:repeat-x;" height="46">&nbsp;
                    
                    </td>
                    <td style="background:url(images/bottomRightCorner.jpg); background-repeat:no-repeat;" width="35" height="46">&nbsp;
                    
                    </td>
                </tr>
            </table>
        </td>
  </tr>
</table>
</body>
</html>